package com.itheima.tlias.controller;

import com.itheima.tlias.service.TestInsertDeptServiceOne;
import com.itheima.tlias.util.ResultUtil;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *测试TransactionController
 * @author lenovo
 */
@RestController
@RequestMapping("test")
public class TestTransactionController {
    @Resource
    TestInsertDeptServiceOne one;

    @GetMapping
    public ResultUtil test(){
        one.insertDeptOne();
        return ResultUtil.success();
    }
}
